package com.viettel.core.bussiness.report;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.viettel.core.dao.report.ReportGeneralDAO;
import com.viettel.core.entities.report.vo.ReportGeneralFilter;
import com.viettel.core.entities.report.vo.ReportGeneralVO;
import com.viettel.core.exceptions.BusinessException;
import com.viettel.core.exceptions.DataAccessException;

public class ReportGeneralMgrImpl implements ReportGeneralMgr{

	@Autowired
	ReportGeneralDAO reportGeneralDAO;
	
	@Override
	public List<ReportGeneralVO> getReportText(ReportGeneralFilter filter)
			throws BusinessException {
		try { 
			return  reportGeneralDAO.getReportText(filter); 
		} catch (DataAccessException e) { 
			throw new BusinessException(e); 
		} 
	}

	@Override
	public List<ReportGeneralVO> getReportSub(ReportGeneralFilter filter)
			throws BusinessException {
		try { 
			return  reportGeneralDAO.getReportSub(filter); 
		} catch (DataAccessException e) { 
			throw new BusinessException(e); 
		} 
	}

	@Override
	public List<ReportGeneralVO> getReportAll(ReportGeneralFilter filter)
			throws BusinessException {
		try { 
			return  reportGeneralDAO.getReportAll(filter); 
		} catch (DataAccessException e) { 
			throw new BusinessException(e); 
		} 
	}

}
